<template>
	<view class="fixed right30 bottom80 radius w80 h80 bg-eee flex row-center z-index2" @click="top"
		v-if="scrollTop>500">
		<uni-icons type="arrow-up" size="30"></uni-icons>
	</view>
</template>

<script>
	export default {
		name: "back-top",
		props: {
			scrollTop: {
				default: 0
			}
		},
		data() {
			return {

			};
		},
		methods: {
			top() {
				uni.pageScrollTo({
					scrollTop: 0,
				
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
